import Vue from 'vue'
import App from './App'

// 引入全局uView
import uView from '@/uni_modules/uview-ui'
import navigationPlugin from './utils/navigationPlugin';
import { getCapsulePadding } from './utils/capsuleUtils'
Vue.prototype.$getCapsulePadding = getCapsulePadding;

App.mpType = 'app'
Vue.use(uView)
Vue.use(navigationPlugin);

// #ifdef MP
// 引入uView对小程序分享的mixin封装
const mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)
// #endif


const app = new Vue({
    ...App
})

// 引入请求封装
require('./utils/request/index')(app)


app.$mount()
